#ifndef COREXMLGENERATOR_H
#define COREXMLGENERATOR_H

#include <QObject>
#include <QSslSocket>
#include <QDomDocument>

class CoreXMLGenerator : public QObject
{
Q_OBJECT
public:
    explicit CoreXMLGenerator(QSslSocket* sock,QObject *parent = 0);
    void generateProtocolVersion();
    void generateAuthenticated(QString username);
    void generateAuthError();
    void generateShowConnectionState(QString jid,QString state);
signals:

public slots:
private:
    void sendInitData(int uid);
    QString username;
    QSslSocket* socket;
    void sendDocument(QDomDocument d);
    QDomDocument getDocument();




};

#endif // COREXMLGENERATOR_H
